package com.jenkins.test.proxy.gov.dto;

import com.alibaba.fastjson.annotation.JSONField;
import com.jenkins.test.proxy.gov.constant.RequestType;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.HashMap;
import java.util.Map;

/**
 * @version V1.0.0
 * @ClassName: {@link GovRequest}
 * @Description: GovRequest
 * @author: Lanzhou
 * @date: 2022/1/22 8:50
 * @Copyright:2020 All rights reserved.
 */
@Setter
@Getter
@ToString
public class GovRequest {

    /**
     * 统一社会信用代码
     */
    @JSONField(serialize = false)
    private String creditCode;

    /**
     * 默认Http类型请求
     */
    @JSONField(serialize = false)
    private RequestType requestType = RequestType.POST;

    /**
     * 请求地址
     */
    @JSONField(serialize = false)
    private String requestUrl;

    /**
     * 请求体
     */
    @JSONField(serialize = false)
    private String body;

    /**
     * 头信息
     */
    @JSONField(serialize = false)
    private Map<String, String> headers = new HashMap<>();


}
